﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<GabageFactory.Models.Position>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	创建位置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        <%= Html.HiddenFor(model => model.Id) %>
        <%= Html.HiddenFor(model => model.Type) %>
        <%= Html.HiddenFor(model => model.FactoryId) %>
        <%= Html.HiddenFor(model => model.StackId) %>
        
    <p class="sys_create_btn">
        <%= Html.ActionLink("返回位置列表", "List", new { factoryId = Model.FactoryId, stackId = Model.StackId, type = Model.Type }) %>
    </p>  
        
    <table cellpadding="4" cellspacing="0" class="com_detail_table" style="width:756px;">
        <tr>
            <th colspan="2"><%=Model.Id > 0 ? "编辑" : "创建"%>位置</th>
        </tr>
        <tr>
            <td class="lab" style="width:130px;">所属<%=Model.Type == 1 ? "堆场" : "尾矿库" %>：</td>
            <td>
                <%= ViewData["stackName"]%>
            </td>
        </tr>
        <tr>
            <td class="lab" style="width:130px;">位置名称：</td>
            <td>
                <%= Html.TextBoxFor(model => model.Name, new { size = "40" })%>
                <%= Html.ValidationMessageFor(model => model.Name) %>
            </td>
        </tr>
        <tr>
            <td class="lab">位置描述：</td>
            <td>
                <%= Html.TextAreaFor(model => model.Description, new { cols = "68" , rows = "14" })%>
                <%= Html.ValidationMessageFor(model => model.Description) %>
            </td>
        </tr>
        <tr>
            <td class="lab">停止上传：</td>
            <td>
                <%= Html.CheckBoxFor(model => model.Status)%>
                <%= Html.ValidationMessageFor(model => model.Status)%>
            </td>
        </tr>
    </table>
        
    <div class="submit_btn_area" style="margin-left:142px;">
        <input type="submit" value="提 交" />
    </div>

    <% } %>
</asp:Content>

